package com.example.nacosconsumerpaymemt7777.controller;

import com.example.common.Bean.Result;
import com.example.nacosconsumerpaymemt7777.service.OpenFeinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaoren
 * @version 1.0
 * @description TODO
 * @date 2020/9/6 11:25
 **/
@RestController
@RequestMapping("/")
public class FeinController {

    @Autowired
    private OpenFeinService openFeinService;

    @GetMapping("feinconsumer/student/all")
    public Result<Object> students(){
        Result<Object> students = openFeinService.findAll();
        return students;
    }

}
